package xyz.suancaiyu.eurekafeignclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import xyz.suancaiyu.eurekafeignclient.client.config.FeignConfig;
import xyz.suancaiyu.eurekafeignclient.client.hystrix.HiHystrix;

@FeignClient(value = "eureka-client", configuration = FeignConfig.class,fallback = HiHystrix.class)
public interface EurekaClientFeign {

    @RequestMapping(value = "/hi")
    String sayHiFromClientEureka(@RequestParam(value = "name") String name);
}
